package com.zhuoyue.biz.core.api.dto.req;

import com.zhuoyue.common.group.ValidationGroups;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 网关添加
 *
 * @author wjming
 */
@Data
public class GateWayDTO {
    /**
     * 网关ID修改设备信息时候的必填信息
     */
    @NotBlank(message = "网关ID不能为空!", groups = {ValidationGroups.Update.class})
    private String gatewayId;
    /**
     * 所属家庭ID
     */
    @NotBlank(message = "家庭ID不能为空！")
    private String homeId;

    /**
     * ZigBee模块mac地址
     */
    @NotBlank(message = "网关MAC地址不能为空！")
    private String zigbeeMac;

    /**
     * WIFI模块mac地址
     */
    private String wifiMac;

    /**
     * 网关类型添加
     */
    private String gatewayType;

    /**
     * WIFI模块IP地址
     */

    private String wifiIp;

    /**
     * 网关名称
     */
    @NotBlank(message = "网关名称不能为空！", groups = {ValidationGroups.Insert.class})
    @Length(min = 1, max = 15, message = "请输入1-15个字符", groups = {ValidationGroups.Insert.class})
    @Length(max = 15, message = "不能超过15个字符", groups = {ValidationGroups.Update.class})
    private String name;

    /**
     * 自动入网标志
     */
    private String zdrwbz;

    /**
     * 图片地址
     */
    private String imgUrl;
    /**
     * 产品Id
     */
    private String prodId;
    /**
     * 网关推送标识
     */
    private String gatewayPush;

}
